import request from '@/utils/request'

// 查询群聊消息列表
export function listGroupmessage(query) {
  return request({
    url: '/business/groupmessage/list',
    method: 'get',
    params: query
  })
}

// 查询群聊消息详细
export function getGroupmessage(id) {
  return request({
    url: '/business/groupmessage/' + id,
    method: 'get'
  })
}

// 新增群聊消息
export function addGroupmessage(data) {
  return request({
    url: '/business/groupmessage',
    method: 'post',
    data: data
  })
}

// 修改群聊消息
export function updateGroupmessage(data) {
  return request({
    url: '/business/groupmessage',
    method: 'put',
    data: data
  })
}

// 删除群聊消息
export function delGroupmessage(id) {
  return request({
    url: '/business/groupmessage/' + id,
    method: 'delete'
  })
}
